package com.wml.sellPhone.service;

import com.wml.sellPhone.pojo.PojoCollection;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 我的收藏服务接口类
 * @author Hayes
 */
public interface ICollectionService {
    /**
     * 根据用户ID和手机ID插入我的收藏
     * @param request
     * @param phoneId 手机ID
     * @return
     */
    boolean insert(HttpServletRequest request, Long phoneId);

    /**
     * 根据用户ID和手机ID删除我的收藏
     * @param request
     * @param phoneId 手机ID
     * @return
     */
    boolean delete(HttpServletRequest request, Long phoneId);

    /**
     * 根据用户ID查询我的收藏
     * @param request
     * @return
     */
    List<PojoCollection> selectByUserId(HttpServletRequest request);
}
